<template>
  <div class="home-container">
    <el-row :gutter="20">
      <el-col :span="8">
        <el-card class="box-card">
          <template #header>
            <div class="card-header">
              <span>代码生成</span>
            </div>
          </template>
          <div class="card-content">
            <p>快速生成前后端代码，提高开发效率</p>
            <el-button type="primary" @click="$router.push('/generator')">
              开始生成
            </el-button>
          </div>
        </el-card>
      </el-col>
      <el-col :span="8">
        <el-card class="box-card">
          <template #header>
            <div class="card-header">
              <span>模板管理</span>
            </div>
          </template>
          <div class="card-content">
            <p>管理代码生成模板，自定义生成规则</p>
            <el-button type="primary" @click="$router.push('/template')">
              管理模板
            </el-button>
          </div>
        </el-card>
      </el-col>
      <el-col :span="8">
        <el-card class="box-card">
          <template #header>
            <div class="card-header">
              <span>使用说明</span>
            </div>
          </template>
          <div class="card-content">
            <p>查看代码生成器的使用说明和最佳实践</p>
            <el-button type="primary">查看文档</el-button>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script setup lang="ts">
// 组件逻辑
</script>

<style scoped>
.home-container {
  padding: 20px;
}

.box-card {
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-content {
  text-align: center;
  padding: 20px 0;
}

.card-content p {
  margin-bottom: 20px;
  color: #666;
}
</style> 